package com.traffic.mapper;

import java.util.List;
import com.traffic.domain.PerDirectRelative;
import org.apache.ibatis.annotations.Mapper;

/**
 * 直系亲属备档Mapper接口
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
@Mapper
public interface PerDirectRelativeMapper 
{
    /**
     * 查询直系亲属备档
     * 
     * @param relativeId 直系亲属备档主键
     * @return 直系亲属备档
     */
    public PerDirectRelative selectPerDirectRelativeByRelativeId(Long relativeId);

    /**
     * 查询直系亲属备档列表
     * 
     * @param perDirectRelative 直系亲属备档
     * @return 直系亲属备档集合
     */
    public List<PerDirectRelative> selectPerDirectRelativeList(PerDirectRelative perDirectRelative);

    /**
     * 新增直系亲属备档
     * 
     * @param perDirectRelative 直系亲属备档
     * @return 结果
     */
    public int insertPerDirectRelative(PerDirectRelative perDirectRelative);

    /**
     * 修改直系亲属备档
     * 
     * @param perDirectRelative 直系亲属备档
     * @return 结果
     */
    public int updatePerDirectRelative(PerDirectRelative perDirectRelative);

    /**
     * 删除直系亲属备档
     * 
     * @param relativeId 直系亲属备档主键
     * @return 结果
     */
    public int deletePerDirectRelativeByRelativeId(Long relativeId);

    /**
     * 批量删除直系亲属备档
     * 
     * @param relativeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePerDirectRelativeByRelativeIds(Long[] relativeIds);
}
